<?php $panel1Count=$panel2Count=$panel3Count=0;if(!empty($ZMODEL['moduleList']['system'])){$panel1Count=count($ZMODEL['moduleList']['system']);$itemHtml='';foreach($ZMODEL['moduleList']['system']as$item){$itemHtml.=<<<S
<li>
	<div class="thumb">
		<img src="{$item['thumbnail']}">
	</div>
	<div class="modDes">
		<h5>{$item['name']}</h5>
		<p class="des">{$item['description']}</p>
		<p class="price"><span class="priceLabel">价格：</span><span class="priceType">免费</span></p>
	</div>
	<div class="blackHighlightBtn addModBtn" data-id="{$item['id']}"><button type="button">添加</button></div>
</li>
S;
}$systemModPanelHtm='<ul class="modItems">'.$itemHtml.'</ul>';}else{$systemModPanelHtm='<p class="noMod">没有可用模块</p>';}if(!empty($ZMODEL['moduleList']['designer'])){$panel2Count=count($ZMODEL['moduleList']['designer']);$itemHtml='';foreach($ZMODEL['moduleList']['designer']as$item){$itemHtml.=<<<S
<li>
	<div class="thumb">
		<img src="{$item['thumbnail']}">
	</div>
	<div class="modDes">
		<h5>{$item['name']}</h5>
		<p class="des">{$item['description']}</p>
		<p class="price"><span class="priceLabel">价格：</span><span class="priceType">免费</span></p>
	</div>
	<div class="blackHighlightBtn addModBtn" data-id="{$item['id']}"><button type="button">添加</button></div>
</li>
S;
}$designerModPanelHtm='<ul class="modItems">'.$itemHtml.'</ul>';}else{$designerModPanelHtm='<p class="noMod">没有可用模块</p>';}?> <!DOCTYPE html><html lang="zh"><head><meta charset="utf-8"><title>页面编辑-添加模块</title><link rel="shortcut icon" type="image/x-icon" href="/v/admin/g/img/favicon.ico"><link rel="stylesheet" type="text/css" href="/i/d/css/common.css"><link rel="stylesheet" type="text/css" href="/v/admin/g/css/button.css"><link rel="stylesheet" type="text/css" href="<?php echo$this->assetsUri()?>/css/default.css"><!--[if lt IE 9]><script type="text/javascript" src="/i/d/js/html5shiv-printshiv.js"></script><![endif]--><script type="text/javascript" src="/i/d/js/jquery.js"></script><script type="text/javascript" src="/i/d/js/zmsun/zmsunwidget.js"></script><script type="text/javascript" src="/i/d/js/zmsun/zmsunslider.js"></script><script type="text/javascript" src="<?php echo$this->assetsUri()?>/js/default.js"></script></head><body><input type="hidden" name="adminBaseUrl" value="<?=$this->baseUri ?>"><div class="moduleList"><div class="panels"><div class="panel"><div class="mods-num">共有<span class="highlight"><?php print$panel2Count;?></span>模块</div><div class="modList"><?php print$designerModPanelHtm;?></div></div><div class="panel"><div class="mods-num">共有<span class="highlight"><?php echo$panel1Count;?></span>模块</div><div class="modList"><?php echo$systemModPanelHtm;?></div></div></div><ul class="tabsNav"><li><span>设计师模块</span></li><li><span>基础模块</span></li></ul></div></body></html>